package com.iran.decorator.example2;

public class AddYeGuo extends Decorator {
    public AddYeGuo(MilkTea milkTea) {
        super(milkTea);
    }

    @Override
    public int getPrice() {
        return super.getPrice()+2;
    }

    @Override
    public String getName() {
        return super.getName()+"+椰果;";
    }
}
